package hiho.ku._1237;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		double x = in.nextDouble();
		double y = in.nextDouble();
		double r = in.nextDouble();

		int minX = (int) Math.ceil(x - r);
		int maxX = (int) Math.floor(x + r);
		int ansX = 0;
		int ansY = 0;
		double ansD = 0;
		for (int i = minX; i <= maxX; i++) {
			double deltaJ = Math.sqrt((r * r - (x - i) * (x - i)));
			
			int oneJ = (int) Math.floor(y + deltaJ);
			double oneD = (oneJ - y) * (oneJ - y) + (i - x) * (i - x);
			if (oneD >= ansD) {
				ansX = i;
				ansY = oneJ;
				ansD = oneD;
			}
			
			int twoJ = (int) Math.ceil(y - deltaJ);
			double twoD = (twoJ - y) * (twoJ - y) + (i - x) * (i - x);
			if (twoD > ansD || twoD == ansD && i > ansX) {
				ansX = i;
				ansY = twoJ;
				ansD = twoD;
			}
		}
		System.out.println(ansX + " " + ansY);
	}

}
